//
//  GraphicDetailViewController.swift
//  viewcontroller_test
//
//  Created by 潘茹燕 on 16/4/5.
//  Copyright © 2016年 海南开工信息技术有限公司. All rights reserved.
//

import UIKit

class GraphicDetailViewController: UIViewController {

    @IBOutlet weak var webView: UIWebView!
    
    var refreshView = KGRefreshView(frame: CGRect(x: 0, y: 0, width: 1, height: 1))
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        
        
        webView.loadRequest(NSURLRequest(URL: NSURL(string: "http://h5.m.taobao.com/awp/core/detail.htm?id=527380464269&scm=1007.13036.27498.100200300000001&pvid=9aa9a985-bf40-4a0f-9db3-c299083ed527&spm=a21c0.44348.sliderecommend.drecommend0&scm=1007.13036.27498.100200300000001&pvid=9aa9a985-bf40-4a0f-9db3-c299083ed527&spm=a21c0.44348.sliderecommend.drecommend0#fulldesc")!))
        
        
        refreshView.NoMoreData  = true
        refreshView.titleForPullRefresh = "下拉，回到宝贝详情"
        refreshView.titleForReadyPullRefresh = "释放，回到宝贝详情"
        refreshView.tintColor = UIColor.blackColor()
        
        webView.scrollView.addSubview(refreshView)
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    

    

}
